package com.xyhua.hutooldemo.proxy;

import cn.hutool.aop.ProxyUtil;
import cn.hutool.aop.aspects.SimpleAspect;
import cn.hutool.aop.aspects.TimeIntervalAspect;

/**
 * description: Aop <br>
 * date: 2020/3/23 5:08 下午 <br>
 * author: huaxiansheng <br>
 * version: 1.0 <br>
 */
public class ProxyTest {

    public static void main(String[] args) {
//        Animal proxy = ProxyUtil.proxy(new Cat(), TimeIntervalAspect.class);
        Animal proxy = ProxyUtil.proxy(new Cat(), XyhuaProxy.class);
        proxy.eat();

    }
}
